package com.lb.poitl;

import java.util.List;
import java.util.Optional;

import org.apache.commons.lang3.StringUtils;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFRun;
import org.jsoup.nodes.Node;

import lombok.Data;

/**
 * @author zhangjun
 */
@Data
public class HandlerParams {
    /**
     * 当前的html元素
     */
    private Node currentNode;

    /**
     * 当前定位的块
     */
    private XWPFRun currentRun;

    public XWPFRun createRun(){
        XWPFParagraph paragraph = (XWPFParagraph)this.getCurrentRun().getParent();
        this.currentRun = paragraph.createRun();
        return this.currentRun;
    }
}
